package com.xiaozhen.common.core.domain.cmdb;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaozhen.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author zhenweisheng
 * @date 2020/9/2 15:43
 * @description:
 */
@Data
@TableName("cmdb_model")
@ApiModel(description = "模型")
public class CmdbModel extends BaseEntity {

    @TableId
    @ApiModelProperty(value = "模型ID")
    private Long modelId;

    @ApiModelProperty(value = "模型名称")
    private String modelName;

    @ApiModelProperty(value = "描述")
    private String description;

    @TableLogic
    @ApiModelProperty(value = "删除标识（0-正常,1-删除）")
    private Integer delFlag;

    @ApiModelProperty(value = "实例value的ID")
    @TableField(exist = false)
    private List<CmdbModelAttribute> modelAttributes;
}
